﻿using System.Configuration;

namespace ErrorDumper.Configuration {
    public class WritingConfigurationSection : ConfigurationSection {
        private const string _sectionName = "errorDumper/writing";

        public static WritingConfigurationSection GetSection() {
            return (WritingConfigurationSection)
                ConfigurationManager.GetSection(_sectionName);
        }

        [ConfigurationProperty("writers")]
        public WriterConfigurationElementCollection Writers {
            get { return (WriterConfigurationElementCollection)this["writers"]; }
        }
    }
}